package com.ruoyi.material.mapper;

import com.ruoyi.material.domain.SysUserProject;

/**
 * @Entity com.ruoyi.material.domain.SysUserProject
 */
public interface SysUserProjectMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUserProject record);

    int insertSelective(SysUserProject record);

    SysUserProject selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserProject record);

    int updateByPrimaryKey(SysUserProject record);

    /**
     *  删除中间表数据
     * @param projectId
     */
    void deleteSysUserProjectByProjectId(Long projectId);

    Integer[] selectProjectIdsForCascader(Long userId);

    /**
     *  查询用户所拥有的项目ids
     */
    Integer[] selectProjectIds(Long userId);
}
